/*
 * @Author: c
 * @Date: 2024-01-08 22:15:33
 * @LastEditTime: 2024-01-20 01:27:38
 * @LastEditors: c
 * @Description: 
 * @FilePath: \music-web-backend\src\core\music\category\dto\create-category.dto.ts
 * https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { IsBoolean, IsNumber, IsOptional, IsString } from "class-validator";

export class CategoryForm {


    //种类名称
    @IsString()
    categoryName: string;

    //种类是否激活
    @IsBoolean()
    isActive: boolean

    //父类别ID
    @IsOptional()
    @IsNumber()
    parentId: number;

    //图标
    @IsOptional()
    @IsString()
    icon: string;


    //排序
    @IsOptional()
    @IsNumber()
    sort: number;

}
